import axios from '@/utils/axios'

export const getUserRoleRelationList = (
  params: BaseUserRoleRelationPO
): Promise<ApiResult<BaseUserRoleRelationPO[]>> => {
  return axios.get(`base/user/role/relation/list`, { params })
}

export const postUserRoleRelation = (params: {
  userId: string
  roleIds: string[]
}): Promise<ApiResult<null>> => {
  return axios.post(`base/user/role/relation/list`, {}, { params })
}
